package org.example.rabbitmq.common.message;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author hzq
 * @date 2021/11/25 10:34
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MessageFail {

    /**
     * 交换器
     */
    private String exchange;

    /**
     * 路由键
     */
    private String routingKey;

    /**
     * 消息
     */
    private String json;

    /**
     * 消息id
     */
    private String msgId;

    /**
     * 失败描述
     *
     * @see org.example.rabbitmq.common.constant.MessageFailDesc
     */
    private String desc;

    /**
     * 失败报文
     */
    private String cause;

}
